﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using WCFServiceWebRole1;

public partial class _Default : System.Web.UI.Page
{
    Accnt mem;
    //dbmanager db = new dbmanager();
    PagedDataSource pds = new PagedDataSource();


    protected void Page_Load(object sender, EventArgs e)
    {
        //Menu temp3 = (Menu)Master.FindControl("menu1");
        //temp3.Items[0].Selected = true;

        this.LoadComplete += new EventHandler(_Default_LoadComplete);



    }

    void _Default_LoadComplete(object sender, EventArgs e)
    {
        mem = (Accnt)Session["userSession"];
        Service1 svc = new Service1();
        AccntList ac = svc.GetLeaderboard();
    }




    protected bool adminControl()
    {
        //if (mem != null && mem.Role.ToLower() == "admin")
        //{
        return true;
        //}
        //else
        //{
        //    return false;
        //}
    }

}

